import React from 'react'
import classNames from 'classnames'
import { FontAwesomeIcon, FontAwesomeIconProps } from '@fortawesome/react-fontawesome'
import { faAd  } from '@fortawesome/free-solid-svg-icons'

interface IconProps {
  icon: any,
  theme?:string,
  className?:string
}

const Icon: React.FC<IconProps> = (props) => {
  // icon-primary
  const { className, theme, icon, ...restProps } = props
  return (
    <FontAwesomeIcon icon={icon} {...restProps} />
  )
}

Icon.defaultProps = {
  icon: faAd
}

export default Icon
